package com.qyhl.module_practice.center.level;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeLevelBean;

import java.util.List;

public class PracticeLevelPresenter implements PracticeLevelContract.PracticeLevelPresenter {
    private PracticeLevelActivity mView;
    private PracticeLevelModel mModel;

    PracticeLevelPresenter(PracticeLevelActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeLevelModel(this);
    }

    @Override
    public void getLevel() {
        mModel.getLevel();
    }

    @Override
    public void setLevel(List<PracticeLevelBean> beanList) {
        mView.setLevel(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
